//#include <QtGui>
//#include <QLabel>
//#include <QPalette>

#include <QApplication>
#include <QMessageBox>

#include "window.h"
#include "digitalclock.h"

int main(int argc, char *argv[])
{

    //    Q_INIT_RESOURCE(Test_Qt);

    QApplication app(argc, argv);

    if (!QSystemTrayIcon::isSystemTrayAvailable()) {
        QMessageBox::critical(0, QObject::tr("Systray"),
                              QObject::tr("I couldn't detect any system tray "
                                          "on this system."));
        return 1;
    }
    QApplication::setQuitOnLastWindowClosed(false);

    Window fenetre;
    fenetre.show();

    return app.exec();
}


//int main(int argc, char* argv[])
//{
//    QApplication app(argc, argv);
//    QPixmap pm(50,50);
////    pm.s
//    pm.fill();

//    QPainter p(&pm);
//    p.setRenderHint(QPainter::Antialiasing, true);
//    QPen pen(Qt::black, 1);
//    p.setPen(pen);
//    QBrush brush(Qt::yellow);
//    p.setBrush(brush);
//    p.drawEllipse(1, 1, 8, 8);
//    QLabel l;
//    l.setPixmap(pm);
//    l.show();
//    return app.exec();
//}
